package com.eveinfo.sql.data;

import java.util.ArrayList;

import com.eveinfo.api.asset.ApiAsset;

public class Station implements Comparable<Station> {
	
	private final String stationName;
	private final ArrayList<ApiAsset> assets;
	
	public Station(String stationName) {
		this.stationName = stationName;
		this.assets = new ArrayList<ApiAsset>();
	}

	public boolean addAsset(ApiAsset asset){
		return assets.add(asset);
	}
	
	public boolean addAsset(ArrayList<ApiAsset> assets){
		return this.assets.addAll(assets);
	}

	public ArrayList<ApiAsset> getAssets() {
		return assets;
	}

	public ApiAsset get(int position) {
		return assets.get(position);
	}

	@Override
	public int compareTo(Station another) {
		return stationName.compareTo(another.getStationName());
	}

	public String getStationName() {
		return stationName;
	}
	
}
